import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import "dayjs/locale/zh-cn";
dayjs.extend(relativeTime);
const useDayjs = (before: string) => {
  return "发布于" + dayjs().to(dayjs(before));
};
export default useDayjs;
